<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    public $table='user';
    public $primaryKey='user_id';
    public $timestamps=true;
    public function role(){
        return $this->belongsToMany('App\Model\Role','user_role','user_id','role_id');
    }
}
